package com.java2_8;

public class Dog extends wolf{
    private String name = "lisi";
    public void text(){
        System.out.println("this is a dog!");
    }

    public void NAME(){
        String name = "wangwu";
        System.out.println(super.getName());
    }
    //方法重写
    @Override //判单方法重写的对错
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }
}
